
mkdir -p gen

# https://github.com/protocolbuffers/protobuf/issues/4176
# https://stackoverflow.com/questions/38390260/import-and-usage-of-different-package-files-in-protobuf

protoc --plugin=/usr/local/bin/protoc-gen-d --d_out=./gen --proto_path=./ app/grpc/*.proto
protoc --plugin=protoc-gen-grpc=/usr/local/bin/grpc_dlang_plugin --proto_path=./ --grpc_out=./gen app/grpc/*.proto